import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

const app = createApp(App)
// 引入elementui配置
import { ElementPlus } from "./elementui"
// 引入重置样式
import "./assets/css/reset.css"
// 引入图标的全局样式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 引入公共组件
import coms from './common/index'
for (const [key, component] of Object.entries(coms)) {
    app.component(key, component)
}

// 全局配置api 比较麻烦
// import api from "./request/api"
// app.config.globalProperties.$api = api

app.use(ElementPlus).use(store).use(router).mount('#app')
